package org.mte.swift.builder.model.jpa;

public class ColumnEntity {

	private String fieldName = null;
	
	private String columnName = null;
	
	private boolean isPrimaryKey = false;
	
	public ColumnEntity() {
		
	}
	
	public ColumnEntity(String fieldName, String columnName, boolean isPrimaryKey) {
		this.fieldName = fieldName;
		this.columnName = columnName;
		this.isPrimaryKey = isPrimaryKey;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public boolean isPrimaryKey() {
		return isPrimaryKey;
	}

	public void setPrimaryKey(boolean isPrimaryKey) {
		this.isPrimaryKey = isPrimaryKey;
	}
	
	public String toString() {
		StringBuilder b = new StringBuilder();
		b.append("fieldName=").append(fieldName).append(" - ");
		b.append("columnName=").append(columnName).append(" - ");
		b.append("isPrimaryKey=").append(isPrimaryKey);
		return b.toString();
	}

}
